package com.cola.demo.Soundsystem;

/**
 * @Grup:com.cola.demo.Soundsystem
 * @Auther:cola
 * @Data:2021/4/20-2021-04-22:31
 * @version:1.0
 */
public class Music {
    private String title;
    private Integer duration;

    public Music(String title, Integer duration) {
        this.title = title;
        this.duration = duration;
    }

    public Music() {
        System.out.println("Music的构造函数.........."+this.toString());
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        System.out.println("___在"+this.toString()+"注入Title");
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
        System.out.println("___在"+this.toString()+"注入Duration");
    }
}
